package com.wiz.vo.criteria;

public class StationSearchCriteriaTO {
	private String hqName;//总部名称
	private String legalRepresentative;//法人/代理人
	private String contactsName;//联系人
	private String phoneNum;//电话
	private String provinceId;//省份编码
	private String cityId;//城市编码
	
	private int pageSize;
	private int pageNo;
	private Boolean isNeedPaging;
	private int startIndex;
	private int endIndex;

	
	public StationSearchCriteriaTO() {
		super();
	}

	public StationSearchCriteriaTO(String hqName, String legalRepresentative,
			String contactsName, String phoneNum, String provinceId,
			String cityId, int pageSize, int pageNo, Boolean isNeedPaging) {
		super();
		this.hqName = hqName;
		this.legalRepresentative = legalRepresentative;
		this.contactsName = contactsName;
		this.phoneNum = phoneNum;
		this.provinceId = provinceId;
		this.cityId = cityId;
		this.pageSize = pageSize;
		this.pageNo = pageNo;
		this.isNeedPaging = isNeedPaging;
	}

	public Boolean getIsNeedPaging() {
		return isNeedPaging;
	}

	public void setIsNeedPaging(Boolean isNeedPaging) {
		this.isNeedPaging = isNeedPaging;
	}

	public int getStartIndex() {
		if (this.startIndex == 0)
			return (this.pageNo - 1) * this.pageSize;
		else
			return this.startIndex;

	}

	public void setStartIndex(int startIndex) {
		this.startIndex = startIndex;
	}

	public int getEndIndex() {
		if (this.endIndex == 0)
			return this.pageSize* this.pageNo;
		else
			return this.endIndex;
	}

	public void setEndIndex(int endIndex) {
		this.endIndex = endIndex;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}

	public String getHqName() {
		return hqName;
	}

	public void setHqName(String hqName) {
		this.hqName = hqName;
	}

	public String getLegalRepresentative() {
		return legalRepresentative;
	}

	public void setLegalRepresentative(String legalRepresentative) {
		this.legalRepresentative = legalRepresentative;
	}

	public String getContactsName() {
		return contactsName;
	}

	public void setContactsName(String contactsName) {
		this.contactsName = contactsName;
	}

	public String getPhoneNum() {
		return phoneNum;
	}

	public void setPhoneNum(String phoneNum) {
		this.phoneNum = phoneNum;
	}

	public String getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(String provinceId) {
		this.provinceId = provinceId;
	}

	public String getCityId() {
		return cityId;
	}

	public void setCityId(String cityId) {
		this.cityId = cityId;
	}

	
}
